CMAKE_MINIMUM_REQUIRED(VERSION 3.10.0)
PROJECT(Launcher_cpp)

# 设置MSVC编译编码
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/source-charset:utf-8>")

set(CMAKE_CXX_STANDARD 20)

add_definitions(-D _UNICODE)
add_definitions(-D NDEBUG)
add_definitions(-D UNICODE)

set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")

AUX_SOURCE_DIRECTORY(. SRC_LIST)

ADD_EXECUTABLE(Launcher ${SRC_LIST} "app_win32.rc")